package cn.gok.service.impl;

import cn.gok.dao.CourseMapper;
import cn.gok.dao.StudentMapper;
import cn.gok.entity.Course;
import cn.gok.entity.Student;
import cn.gok.service.StudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: LKSV
 * @Description:
 * @Date:Created in 19:30 2021/7/27
 */
@Service
public class StudentServiceImpl implements StudentService
{
    @Resource
    private StudentMapper studentMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(Student record) {
        return studentMapper.insert(record);
    }

    @Override
    public int insertSelective(Student record) {
        return 0;
    }

    @Override
    public Student selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Student record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Student record) {
        return 0;
    }

    @Override
    public Student selectByName(String studentName, String password) {

        return  studentMapper.selectByName(studentName,password);
    }

    @Override
    public List<Course> selectByClass(Integer id) {
        return studentMapper.selectByClass(id);
    }

    @Override
    public List<Course> selectStudentClass() {
        return studentMapper.selectStudentClass();
    }

}
